package com.zxl.always.on.display.ui.widget.clock;

import android.content.Context;
import android.util.AttributeSet;
import android.view.LayoutInflater;

import com.zxl.always.on.display.R;

/**
 * Created by Administrator on 2018/2/28.
 */

public class DigitalClockView extends BaseClockView {

    public static int DIGITAL_STYLE_ARRAY[] = {R.layout.widget_digitalclock_layout_01, R.layout.widget_digitalclock_layout_02, R.layout.widget_digitalclock_layout_03, R.layout.widget_digitalclock_layout_04};

    public DigitalClockView(Context context, AttributeSet attrs) {
        super(context, attrs);
    }

    @Override
    public void refreshStyle() {
        mClockLayout.removeAllViews();
        LayoutInflater.from(getContext()).inflate(DIGITAL_STYLE_ARRAY[mDigitalStyle], mClockLayout, true);
    }


}
